﻿<%@ Page Language="C#" MasterPageFile="~/Index.Master" AutoEventWireup="true" CodeBehind="SanPham.aspx.cs" Inherits="EM11_NhaCungCap.WebForm2" Title="Untitled Page" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Menu" runat="server">
    <ul>
        <li><a href="Default.aspx">Trang chủ</a></li>
        <li><a href="SanPham.aspx" class="current">Sản phẩm</a></li>
        <li><a href="GioHang.aspx">Giỏ hàng</a></li>
        <li><a href="DangNhap.aspx">Đăng nhập</a></li>
        <li><a href="LienHe.aspx">Liên hệ</a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2><span></span>Danh sách sản phẩm</h2>
                    
    <div class="main_column_section_content">
        <asp:DataList ID="DataList1" runat="server" Width=100%>
        <ItemTemplate>
        <table width="100%" border="0" cellspacing="2" cellpadding="2">
        <tr>
          <td width="35%" align="left" valign="top"><a href="#"><img src="http://hc10-em11-ncc.somee.com/Webservice_NCC/images/<%# Eval("HinhAnh") %>" width="140" height="180" /></a></td>
          <td width="65%"><h4>
              <asp:Label ID="Label4" runat="server" Text='<%# Eval("TenSanPham") %>'></asp:Label></h4>
            <p class="price">Giá bán : <span>
                <asp:Label ID="Label3" runat="server" Text='<%# Eval("GiaMua") %>'></asp:Label> VNĐ</span></p>
            <p class="price">Giá quy định : 
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("GiaBanQuiDinh") %>'></asp:Label> VNĐ</p>
            <p class="price">
                <asp:Label ID="Label2" runat="server" Text='<%# Eval("MoTaSanPham") %>'></asp:Label></p>
          <p class="price"><a href="GioHang.aspx?action=add&MaSP=<%# Eval("MaSanPham") %>">Đặt mua</a></p></td>
        </tr>
      </table>
        </ItemTemplate>
        </asp:DataList>
       <cc1:collectionpager ID="CollectionPager1" runat="server" BackText="« Trước" 
             FirstText="– Đầu" LabelText="Trang:" LastText="Cuối" NextText="Sau »" 
             ResultsFormat="Kết quả từ {0}-{1} " ShowFirstLast="True" SliderSize="5" 
             PagingMode="PostBack">
        </cc1:collectionpager>
    </div>
    
   
    
    
    
</asp:Content>
